package com.base.test.rabbitmq.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.base.commons.tools.page.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * mq生产者消息表
 * @author qiaodong
 * @since 2020-08-27
 */
@Data
@ApiModel(value = "mq生产者消息表")
public class MqSendPageReq extends PageReq implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "消息ID")
	@JsonProperty("msg_id")
	private String msgId;

	@ApiModelProperty(value = "路由键")
	@JsonProperty("routing_key")
	private String routingKey;

	@ApiModelProperty(value = "消息内容json格式")
	@JsonProperty("msg_json")
	private String msgJson;

	@ApiModelProperty(value = "失败类型 1：mq连接失败 2:投递交换器失败 3:投递队列失败")
	@JsonProperty("fail_type")
	private Integer failType;

	@ApiModelProperty(value = "状态 1：待定 2：失败 3：成功")
	@JsonProperty("status")
	private Integer status;

	@ApiModelProperty(value = "服务名 fbg-base-server,bms-cos-server")
	@JsonProperty("service_name")
	private String serviceName;

	@ApiModelProperty(value = "应用代码 BSC,FMS,OWMS")
	@JsonProperty("app_code")
	private String appCode;

	@ApiModelProperty(value = "业务场景")
	@JsonProperty("business_type")
	private String businessType;

	@ApiModelProperty(value = "创建起始时间")
	@JsonProperty("create_start_time")
	private Date createStartTime;

	@ApiModelProperty(value = "创建截止时间")
	@JsonProperty("create_end_time")
	private Date createEndTime;

}